package com.hxgz.util;

import com.sun.org.apache.xerces.internal.impl.dv.util.Base64;
import java.io.IOException;
import org.springframework.web.multipart.MultipartFile;

public class PictureUtils {

  public static String upPicture(MultipartFile file) throws IOException {
    String encode = "data:image/jpeg;base64" + Base64.encode(file.getBytes());
    return encode;
  }


}
